package com.yuanma.android.boan;


import java.io.*;

class Utility
{

    
    public static String fromStream(InputStream in) throws IOException
    {
	BufferedReader reader = new BufferedReader(new InputStreamReader(in,"GBK"));
	StringBuilder out = new StringBuilder();
	String newLine = System.getProperty("line.separator");
	String line;
	while ((line = reader.readLine()) != null) {
	    out.append(line);
	    out.append(newLine);
	}
	return out.toString();
    }
    
    
}
